# -*- coding: utf-8 -*-
# @Author：fanmingxiang@touty.io
# @Date  ：2022/3/form_case 16:19
import page
from base.base import Base


class PageForm(Base):

    def page_find_name(self):
        self.base_find(page.name_box)

    def page_input_name(self, name):
        self.base_input(page.name_box, name)

    def page_input_phone(self, phone):
        self.base_input(page.phone_box, phone)

    def page_click_btn(self):
        self.base_click(page.submit_btn)

    def page_form(self, name, phone):
        self.page_input_name(name)
        self.page_input_phone(phone)
        self.page_click_btn()